package com.example.simplecardbasic.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS(0, "成功"),
    PARAM_ERROR(1, "参数不正确"),
    SMS_TIME_LIMIT(40000,"频繁请求短信接口,请稍后再试"),
    SMS_SEND_FAILED(40001,"验证码发送失败"),
    ;

    private int code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
